.container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, rgba(44, 47, 87, 0), rgba(20, 22, 44, 0.84));
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition: all 0.3s ease;
  z-index: 1;

  &.isVisible {
    opacity: 1;
    transform: translateZ(0);
  }
}

.wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  padding: 0 10px;
  box-sizing: border-box;
}

.h5Top {
  padding: 0px 0.2rem !important;
}

.top {
  width: 100%;
  box-sizing: border-box;
  padding: 0px 10px;
}

.inner {
  display: inline-flex;
  align-items: center;

  &.isLeft {
    justify-content: flex-start;

    .item {
      margin-left: 10px;
    }
  }

  &.isCenter {
    margin-right: 10px;
    flex: 1;
    width: 0;
    overflow: hidden;
    justify-content: center;

    .item {
      margin-left: 10px;
    }
  }

  &.isRight {
    justify-content: flex-end;

    .item {
      margin-right: 10px;
    }
  }
}

.item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 35px;
  color: #aaa9a9;
  cursor: pointer;

  &.isVolumeBar {
    margin-left: -5px;
    width: 90px;
  }

  &.isQuality {
    &:hover {
      .qualityWrapper {
        display: block;
      }
    }
  }

  &.isDanmaku {
    &:hover {
      .danmakuWrapper {
        display: block;
      }

      .icon {
        color: #ce995b;
      }
    }
  }

  .icon {
    font-size: 22px;
  }
}

.qualityText {
  padding: 0 10px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  color: var(--theme);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
}

.qualityWrapper {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 35px;
  padding: 4px 0;
  min-width: 82px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.qualityItem {
  display: flex;
  padding: 0 10px;
  height: 27px;
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;

  &:hover,
  &.isActive {
    color: var(--theme);
  }

  &.isActive {
    cursor: default;
  }
}

.danmakuWrapper {
  display: none;
  padding: 0 14px 14px;
  position: absolute;
  left: 50%;
  bottom: 35px;
  width: 228px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  box-sizing: border-box;
  cursor: default;

  .opacity {
    display: flex;
    line-height: 30px;
    height: 30px;
  }

  .danmakuWrapLabel {
    margin-top: 17px;
    font-size: 14px;
    color: #fff;
    line-height: 20px;
  }

  .opacityVal {
    margin-right: 10px;
    margin-left: 10px;
    font-size: 12px;
    color: #959595;
    text-align: right;
    width: 34px;
  }

  .opacityBar {
    width: 0;
    flex: 1;
  }

  .location {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .locationItem {
    padding-top: 50px;
    width: 50px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    cursor: pointer;

    &:hover,
    &.isActive {
      color: #ce995b;
    }
  }

  .fontSize {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    height: 20px;
  }

  .fontSizeItem {
    position: relative;
    padding-left: 24px;
    color: #959595;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;

    &.isActive {
      color: #f44a4a;

      &::after {
        content: '';
        position: absolute;
        left: 3px;
        top: 50%;
        width: 12px;
        height: 12px;
        background: #f44a4a;
        border-radius: 6px;
        transform: translateY(-50%);
      }
    }

    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      width: 18px;
      height: 18px;
      border-radius: 9px;
      border: 1px solid #959595;
      transform: translateY(-50%);
      box-sizing: border-box;
    }
  }
}

.slides {
  width: 100%;
  padding: 10px 0;

}

.h5SlideAction {
  padding: 0.1rem 0;
  margin-bottom: 0.6rem;
}

.h5play {
  font-size: 0.30rem;
  color: #fff;
}

.h5Pause {
  font-size: 0.3rem;
  color: #fff;
}

.h5Slide {
  padding: 0 !important;
  margin-left: 0.08rem;

  :global(.adm-slider-thumb-container) {
    width: 0.1rem;
    height: 0.1rem;
    padding: 0;
    top: 0rem;
  }

  :global(.adm-slider-thumb) {
    width: 100%;
    height: 100%;
  }

  :global(.adm-slider-thumb-icon) {
    display: none;
  }

  :global(.adm-slider-track-container) {
    padding: 0;
  }
}

.h5Container {
  width: 100%;
  min-height: 0.7rem;
  height: auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);

}

.h5Volume {
  color: var(--fontfff);
  font-size: 0.24rem;
  margin-left: 0.4rem;
}

.h5FullScreen {
  >i {
    font-size: 0.28rem !important;
    color: var(--fontfff);
  }
}

.h5wrapper {
  min-height: 0.7rem;
  height: auto;
  padding: 0 0.2ren;
}